package zhou.jan07.contest04_Q4;

public class SubCar extends Car {
	//继承父类Car
	
	int price;
	int speed;
	
	
	public int getPrice() {
		return price;
	}


	public void setPrice(int price) {
		this.price = price;
	}


	public int getSpeed() {
		return speed;
	}


	public void setSpeed(int speed) {
		this.speed = speed;
	}


	void speedChange(int newSpeed){
		this.speed=newSpeed; //赋值
		System.out.println(mark+"新速度为："+speed);
	}

}
